package com.hhkj.admin.invoice.model.res;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.hhkj.admin.invoice.common.cont.InvoiceConst;
import com.hhkj.admin.invoice.model.dopo.InvoicePo;
import lombok.Data;

@Data
public class InvoiceRes extends InvoicePo {

    /** 票据类型 **/
    @Excel(name = "票据类型", orderNum = "1", width = 30)
    private String titleType;

    /** 开票状态 **/
    @Excel(name = "开票状态", orderNum = "7", width = 30)
    private String status;

    public String getTitleType() {
        return InvoiceConst.TitleTypeCode.getNameByCode(getTitleTypeCode());
    }

    public String getStatus() {
        return InvoiceConst.Status.getNameByCode(getStatusCode());
    }
}
